<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.see_all_network_friends" CodeFile="see_all_network_friends.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<form id="_Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td align="left" id="table_orange" class="menu_white" height="22"><b><asp:literal id="litFirstName" runat="server"></asp:literal><asp:literal id="litWhoseFriends" runat="server">'s 
				Friends: (</asp:literal><font class="dynamic_number"><asp:literal id="litFriendsCount" runat="server"></asp:literal></font><asp:literal id="litbracket" runat="server">)</asp:literal></b></td>
		</tr>				
		<tr>
			<td valign="top" width="769" height="100%" class="main_table_border">
				<table border="0" cellpadding="0" cellspacing="1" width="100%" height="99%">					
					<tr>
						<td class="blue" valign="top">
							<asp:Label id="lblNoFriends" runat="server" Visible="False" CssClass="blue_inbox">Expand your network to meet cool new people. </asp:Label>
							<asp:Table id="tblFriends" runat="server">
								<asp:TableRow VerticalAlign="Top">
									<asp:TableCell VerticalAlign="Top">
										<table cellSpacing="0" cellPadding="3" width="739" border="0">
											<tr>
												<td vAlign="top" align="left" class="small">
													<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager>
												</td>
											</tr>
											<tr>
												<td align="left" valign="top">
													<asp:DataList runat="server" Width="100%" ShowFooter="False" BorderWidth="0px" ShowHeader="False"
														HorizontalAlign="Left" RepeatColumns="8" CssClass="data_list" RepeatDirection="Horizontal" ID="dlAllFriends" CellPadding="0">
														<ItemTemplate>
															<TABLE cellSpacing="0" cellPadding="0" border="0">
																<TR>
																	<TD class="blue" style="PADDING-LEFT: 0px" align="center"><B>
																			<asp:LinkButton id=lbName runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' cssclass="blue_clear">
																			</asp:LinkButton></B></TD>
																</TR>
																<TR>
																	<TD vAlign="top" align="center" height="100">
																		<asp:imagebutton id=imgPhoto runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'>
																		</asp:imagebutton><BR>
																		<img src="images/spacer.gif" height="3" width="1"><br>
																		<asp:image id=imgOnline runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>'>
																		</asp:image></TD>
																</TR>
																<TR>
																	<TD vAlign="middle" align="center">
																		<asp:LinkButton id=lbDeleteFriend runat="server" CssClass="blue_clear" Visible='<%# DataBinder.Eval(Container.DataItem, "DelFriendVisibility") %>' CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' CommandName="Delete">Delete</asp:LinkButton></TD>
																</TR>
															</TABLE>
														</ItemTemplate>
														<ItemStyle HorizontalAlign="Left" VerticalAlign="Bottom" width="12%"></ItemStyle>
													</asp:DataList>
												</td>
											</tr>											
											<tr>
												<td vAlign="top" align="left" class="small">
													<Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
												</td>
											</tr>											
										</table>
									</asp:TableCell>
								</asp:TableRow>
							</asp:Table>
						</td>
					</tr>
					<tr>
						<td class="small" align="center">
							<table cellSpacing="0" cellPadding="0" width="739" border="0">
								<tr>
									<td class="all_friends" align="left"><asp:TextBox runat="server" Height="1px" Width="1px" ID="txtStartIndexHidden" style="display: none;">0</asp:TextBox>
									<asp:TextBox runat="server" Height="1px" Width="1px" ID="txtFriendsCountHidden" style="display: none;">0</asp:TextBox></td>
									<td class="all_friends" vAlign="top" align="right">
										<asp:Image runat="server" ImageAlign="AbsMiddle" ID="imgAddFriends" ImageUrl="../images/add_friends.gif"></asp:Image>
										<asp:LinkButton runat="server" ID="lbAddFriends" CssClass="blue_clear" onclick="lbAddFriends_Click">Add Friends</asp:LinkButton>&nbsp;&nbsp;&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td class="small" height="100%">&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>
